package com.jade.zsy.store.entity;

import com.jade.bss.db.IdEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
/**
 * 员工KPI
 * User: jinya
 * Date: 2017/6/20
 * Time: 16:33
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "STORE_EMPLOYEE_KPI")
public class EmployeeKpi extends IdEntity {
    @Column(name = "type", nullable = true, updatable = true)
    private int type=1;//0-按照星期统计KPI;1-按照月统计
    @Column(name = "store_id", nullable = true, updatable = true)
    private long storeId=0;
    @Column(name = "employee_id", nullable = true, updatable = true)
    private long employeeId=0;
    @Column(name = "year", nullable = true, updatable = true)
    private int year;//年
    @Column(name = "month", nullable = true, updatable = true)
    private int month;//月
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "start_time", nullable = true, updatable = true)
    private Date startTime;//开始时间
    @Column(name = "end_time", nullable = true, updatable = true)
    private Date endTime;//结束时间
    @Column(name = "sales_amount", nullable = true, updatable = true)
    private BigDecimal salesAmount=new BigDecimal(0);//本月销售指标
    @Column(name = "has_sales_amount", nullable = true, updatable = true)
    private BigDecimal hasSalesAmount=new BigDecimal(0);//已经完成销售指标
    @Column(name = "fin_sales_amount", nullable = true, updatable = true)
    private BigDecimal finSalesAmount=new BigDecimal(0);//最终完成销售指标
    @Column(name = "import_crm", nullable = false, updatable = true)
    private int importCrm=0;//本月导入会员数
    @Column(name = "has_import_crm", nullable = false, updatable = true)
    private int hasImportCrm=0;//本月导入会员数
    @Column(name = "fin_import_crm", nullable = false, updatable = true)
    private int finImportCrm=0;//本月导入会员数
    @Column(name = "status")
    private boolean status=true;       /*启用/禁用*/

}
